home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / battutor.arc / RUNME.BAT < prev    next >
DOS Batch File  |  1986-05-05  |  2KB  |  59 lines

  1. echo off
  2. .                               runme.bat       revised 14-aug-83 16:47
  3. slash/ldl/                             RUNME.BAT
  4. slash/ldll/
  5. echo    Welcome to a "hands-on" demonstration of the Batch File utilities
  6. echo    contained on this diskette.  Before we proceed with the utilities,
  7. echo    let's discuss Batch Files in general.
  8. slash/ll
  9. echo    I would like to use a DOS utility MORE in this presentation, so
  10. echo    would you please place a DOS 2.0 disk with the MORE.COM file in any
  11. echo    other drive ...
  12. echo    ( or, have MORE.COM on the same disk and directory as these files ).
  13. slash/ll
  14. :lookmore
  15. pause
  16. slash/l
  17. echo    XT users with one physical floppy:  Just tap a key if you get the
  18. echo    "insert diskette for drive A:" or "...B:" messages.
  19. slash/ll
  20. echo    I'm going to see if I can find MORE.COM .  It will just take a
  21. echo    second or two ...
  22. if exist more.com goto same_dir
  23. findfile more.com
  24. if errorlevel 255 goto cantfind
  25. if not errorlevel 4 path = d:\
  26. if not errorlevel 3 path = c:\
  27. if not errorlevel 2 path = b:\
  28. if not errorlevel 1 path = a:\
  29. :same_dir
  30. slash/ll
  31. echo    Got it!  Thanks.
  32. slash/ll
  33. echo    Whenever you see  -- More --  displayed, strike any key to continue.
  34. slash/ll
  35. echo    We're assuming that you know what the general concept of
  36. echo    a Batch File is.  Hopefully you have written a few, at least.
  37. echo    If you don't know a Batch File from a Nail File and would like a
  38. echo    short list of journal articles for reference, and a short
  39. echo    "micro-tutorial" on the basics, then type "y" or "Y" .
  40. slash/l/
  41. echo    If, however, you understand the general idea and would like to
  42. echo    politely skip the elementary stuff, then type "n" or "N" . . .
  43. query/l/     So, elementary references  (y/n) ?
  44. if not errorlevel 1 _runme3
  45. if not errorlevel 2 _runme2
  46. goto exit
  47. :cantfind
  48. echo                                    ---
  49. echo    Sorry, I can't find MORE.COM .  Would you check again that it is in
  50. echo    one of the drives (and, it's in the current directory).  If you need
  51. echo    to exit, type CTRL-BREAK, else type any key when ready and I'll look
  52. echo    again.
  53. echo                                    ---
  54. goto    lookmore
  55. :exit
  56. slash/11/        Bye bye
  57. 
  58. &ïë^·╞F≤δ`╕dP─N
  59. Q─NεQÜ)PQÜ╪â─ìP v≡ vεÜΦâ─ëF·╕FÄ└&ïë^°#█t vⁿÜ`â─ïF°╗